package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 投票记录
 * </p>
 *
 * @author chenxuebin
 * @since 2020-01-10
 */
@TableName("t_toupiao_log")
public class ToupiaoLog extends Model<ToupiaoLog> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 投票报名活动ID
     */
	private Long gid;
    /**
     * 投票活动ID
     */
	private Long oid;
	private Long mid;
	private Long mpid;
	private Long sid;
    /**
     * 参与用户uid
     */
	private Long uid;
    /**
     * 投票日期
     */
	private String tpdate;
    /**
     * 今日投票次数
     */
	private Integer amount;
    /**
     * 用户图像
     */
	private String avatarpic;
    /**
     * 用户手机
     */
	private String phone;
    /**
     * 用户昵称&
     */
	private String nickname;
    /**
     * 创建时间购买时间
     */
	private Date createtime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Long getOid() {
		return oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public String getTpdate() {
		return tpdate;
	}

	public void setTpdate(String tpdate) {
		this.tpdate = tpdate;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public String getAvatarpic() {
		return avatarpic;
	}

	public void setAvatarpic(String avatarpic) {
		this.avatarpic = avatarpic;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ToupiaoLog{" +
			"id=" + id +
			", gid=" + gid +
			", oid=" + oid +
			", mid=" + mid +
			", mpid=" + mpid +
			", sid=" + sid +
			", uid=" + uid +
			", tpdate=" + tpdate +
			", amount=" + amount +
			", avatarpic=" + avatarpic +
			", phone=" + phone +
			", nickname=" + nickname +
			", createtime=" + createtime +
			"}";
	}
}
